<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>

<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#">退费确认</a></li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">
                            <form:form id="searchFormDict" modelAttribute="inpBillDetail" onsubmit="return loadDivForm('mainCenterDiv','searchFormDict','${ctx}/nurse/nurseReturnFeeApply/notConfirmReturn');" method="post" class="form-inline">
                                <label>患者姓名 ：</label>
                                <form:input path="name" htmlEscape="false" maxlength="50" class="form-control" />
                                <label>项目名称 ：</label>
                                <form:input path="itemName" htmlEscape="false" maxlength="50" class="form-control" />
                                &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                            </form:form>
                        </div>
                    </div>
                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>病人姓名</th>
                            <th>项目名称</th>
                            <th>项目类别</th>
                            <th>规格</th>
                            <th>单位</th>
                            <th>退费数量</th>
                            <th>开单科室</th>
                            <th>开单医生</th>
                            <th>执行科室</th>
                            <th>执行医生</th>
                            <th>申请护士</th>
                            <th>申请时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${list}" var="InpBillDetail">
                            <tr id="${InpBillDetail.id}">
                                <td>${InpBillDetail.name}</td>
                                <td>${InpBillDetail.itemName}</td>
                                <td class="center">${fns:getDictLabel(InpBillDetail.itemClass,"BILL_ITEM_CLASS_DICT" ,"")}</td>
                                <td class="center">${InpBillDetail.itemSpec}</td>
                                <td class="center">${fns:getDictLabel(InpBillDetail.units,"SPEC_UNIT" ,"")}</td>
                                <td class="center">${InpBillDetail.amount}</td>
                                <td>${fns:getDeptName(InpBillDetail.orderDept, "")}</td>
                                <td>${fns:getUserName(InpBillDetail.orderDoctor)}</td>
                                <td>${fns:getDeptName(InpBillDetail.performDept, "")}</td>
                                <td>${fns:getUserName(InpBillDetail.performPerson)}</td>
                                <td>${fns:getUserName(InpBillDetail.nurseReturnFeeApply.applyMan)}</td>
                                <td><fmt:formatDate value="${InpBillDetail.nurseReturnFeeApply.applyDate}" pattern="yyyy-MM-dd HH:mm:ss" /> </td>
                                <td>
                                    <a href="#"  class="btn btn-success btn-xs" onclick="confirmExtend('确定要同意此退费吗？',function(){delLoad('mainCenterDiv','${ctx}/nurse/nurseReturnFeeApply/confirm?id=${InpBillDetail.id}','${ctx}/nurse/nurseReturnFeeApply/notConfirmReturn?name=${name}&itemName=${itemName}')})">确认</a>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
            </div>
        </section>
    </div>
</div>


